package Integer;

import org.junit.Test;

/**
 * @description:
 * @author: cyy
 **/
public class IntCompare {

    @Test
    public void int1(){
        Integer a = 100;
        Integer b = 100;
        System.out.println("shitutuya:"+(a == b));
    }


    @Test
    public void int2(){
        Integer a2 = 200;
        Integer b2 = 200;
        System.out.println("result:"+ (a2 == b2));
    }


    @Test
    public void int3(){
        double a = 1;
        int i = 0;
        do{
            i++;
        }while (i<0);
        System.out.println("result:" + i);
        switch (i){
            case 1:
                System.out.println("result:" + 1);
                break;
            case 2:
                System.out.println("result:" + 2);
                break;
            default:
                System.out.println("result:" + "cyy");
        }
    }

    @Test
    public void int4() {
        System.out.println(Integer.bitCount(11));
        System.out.println(5 << 2);
    }


}
